package plugins;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TestPluginFinder {
	
	private static final Logger log = LoggerFactory
			.getLogger(TestPluginFinder.class);
    public static void main(String[] args){
        try {
            PluginFinder pluginFinder = new PluginFinder();
            pluginFinder.search("D:\\prace\\workspace\\cii_test\\cii_lib_graph");
            List<ICIIGraphicable> pluginCollection = pluginFinder.getPluginCollection();
            for (ICIIGraphicable plugin: pluginCollection){
                log.debug("Found " + plugin.getGCIIName());
//                plugin.performAction(new IPluginContext() {
//				
//					public void setMessage(IMessage message) {
//						// TODO Auto-generated method stub
//						log.debug("messeging");
//					}
//				
//					public IMessage getMessage() {
//						// TODO Auto-generated method stub
//						return null;
//					}
//				
//				});
            }
        } catch (Exception e) {
            log.debug("Error: " + e.getMessage());
            log.error("", e);
        }
    }
}
